import { request } from 'umi';
import { questionDetailList ,commitParams} from '@/utils/interface';
export let getquestionDetailList=(params:questionDetailList)=>{
    return request("/sypt/answer/list",{params:params})
}



export let getprojectlist=(v?:string)=>{
    if(v){
        return request(`/sypt/task/name/list/${v}`,{params:{0:v}})
    }else{
        return request("/sypt/project/name/list")
    } 
}

export let commit=(params:commitParams)=>{
    return request("/sypt/answer",{
        method: 'POST',
        data:params
    })
}
